﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Elysium.Demo.Informes;

namespace Graficos
{
    public partial class ComprasAnalisis_WinForm : Form
    {
        public ComprasAnalisis_WinForm()
        {
            InitializeComponent();
        }

        public void PonerInfo(DataTable dt)
        {            
            chart1.DataSource = dt;
            chart1.Series["Series1"].XValueMember = "Fecha_Documento";
            chart1.Series["Series1"].YValueMembers = "Precio_Unitario_Final_Pesos";

            chart1.Series["Series2"].XValueMember = "Fecha_Documento";
            chart1.Series["Series2"].YValueMembers = "Precio_Unitario_Final_Pesos";

            chart1.DataBind();
        }

        private void Compras_Load(object sender, EventArgs e)
        {
            
            // TODO: This line of code loads data into the 'dataSet1.Compras' table. You can move, or remove it, as needed.
        }
    }
}
